import {Navigate} from 'react-router-dom'
import ResumeIndex from "../../view/about/resume/ResumeIndex";
import LayoutIndex from "../../layout/LayoutIndex";
import PracticeIndex from "../../view/practice/PracticeIndex";
import ShouldIndex from "../../view/practice/ShouldIndex/ShouldIndex";
import LifeCycleIndex from '../../view/practice/life/LifeCycleIndex'
import KeepAlive from 'react-activation'

const aboutRoute =  [
    {
        element: <LayoutIndex /> ,
        meta: {
            title: '联系'
        },
        children: [
            {
                path: '/practice',
                element: <KeepAlive id={'PracticeIndex'}><PracticeIndex /></KeepAlive>,
                meta: {title: '公司简介'},
                children: [
                    {path: '', element: <Navigate to='/practice/should'/>, meta: {title: '练习'}},
                    {path: 'should', element: <KeepAlive><ShouldIndex /></KeepAlive>, meta: {title: '练习-should'}},
                    {path: 'life', element: <KeepAlive><LifeCycleIndex /></KeepAlive>, meta: {title: '练习-life'}},
                ]
            },

        ]
    }
]

export default aboutRoute;